
# 定义过滤方法，来过滤热门新闻显示的颜色
def index_class(index):
    if index == 1:
        return "first"
    elif index == 2:
        return "second"
    elif index == 3:
        return "third"
    else:
        return ""
